#include <iostream>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/in.h>
using namespace std; 

int main(){
	int a = 9999; 
	cout << htons(a) << endl; 
	cout << htonl(a) << endl; 
	char *s="192.168.1.1"; 
	show();
	cout << inet_addr(s) << endl; 
	struct in_addr in ; 
	inet_aton(s,&in); 
	cout << in.s_addr << endl; 
	cout << inet_ntoa(in) << endl;
}
